package com.bfly.core.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.util.Date;

/**
 * 公共实体类
 * @author 长沙商脉科技有限公司
 * @date 2020/9/16 20:00
 */
public class BaseEntity {

    @TableId(value = "id",type = IdType.AUTO)
    private int id;

    @TableField("update_date")
    private Date updateDate;

    @TableField("create_date")
    private Date createDate;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }
}
